package na.learn.java.corepatterns.command;

public class TestCommandPattern {

	private Command addCmd;

	private ResourceManager manager;

	private Resource resource;

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		new TestCommandPattern().doTest();

	}

	public void doTest() {
		resource = new AdditableResource();
		addCmd = new AdditionCommand(resource);
		//ExecutionCommand execCmd = new ExecutionCommand(new ExecutableResource());
		manager = new ResourceManager();
		manager.doTask(addCmd);

	}

}
